import  requests,pprint
import requests,json
# payload = {
#     'action': 'list_customer'
# }
#
# response = requests.get('http://127.0.0.1:8888/api/mgr/customers',
#               params=payload)
#
# pprint.pprint(response.json())

# payload = {
#     'username': 'admin',
#     'password': '123456'
# }
#
# response = requests.post('http://127.0.0.1:8888/api/mgr/signin',
#               data=payload)
# pprint.pprint(response)

payload = {
    'action': 'lists',
    'id': 1,
    'newdata': {
        'name': '武汉市桥北医院',
    }
}

response = requests.put('http://127.0.0.1:8888/api/mgr/rsUser',
              json=payload)

pprint.pprint(response.json())